package com.GroupSix.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("questionbank")  //我创建的表名
public class QuestionBankEntityVo {
    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    /**
     * 字典主键
     */
    private Long id;                //题目序号

    private String qscontent;         //题目内容

    private Integer qsscore;             //题目分值

    private String qsanswer;          //题目答案

    private Integer qsdifficulty;       //难易度,1表示容易
    // 2表示中等,3表示难

    private Integer qsknowledge;       //涉及知识点

    private Integer qstype;            //题目类型

    private Integer qscourse;           //学科

    private Integer qsisActive;        //标记是否有效
    //0有效,1无效

    private String qsA;                //选项A

    private String qsB;                //选项B

    private String qsC;                //选项C

    private String qsD;                //选项D

    private String qsE;                //选项E

    private Integer qscreateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime qscreateTime;             //创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime qsupdateTime;             //更新时间

    private Integer curpage;
    private Integer limit;
}
